#ifndef NTP_TIME_H
#define NTP_TIME_H


#include <ESP32Time.h>
int setNTPTime();
int setRTCNTPTime();
void getDateTime();
ESP32Time getRtcTime();
bool isSetRtcTime();
unsigned long computeIntervalCurrent( unsigned long time);
unsigned long timeStringToSeconds(const char* timeStr);

unsigned long  hmsString2Sencod(String );
unsigned long  dhmString2Sencod(String );

time_t stringToTimestamp(const char* str);

bool isDayTime();
long getEpoch();

#endif